/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 * copy of the license can be found in the License.html file at the root of this distribution. If 
 * you cannot locate the  Microsoft Public License, please send an email to 
 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
 * PARTICULAR PURPOSE.
 * ***************************************************************************/




#if !defined(AFX_PGLLINE2DPROPPAGE_H__CF898C40_8166_11D4_8267_00A024D26A1F__INCLUDED_)
#define AFX_PGLLINE2DPROPPAGE_H__CF898C40_8166_11D4_8267_00A024D26A1F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <pgl/core/PGLLine2D.h>

/////////////////////////////////////////////////////////////////////////////
// CPGLLine2DPropPage dialog

/*! \brief 2D line property page.

\ingroup PGLPropPageGroup
*/
class CPGLLine2DPropPage : public CPropertyPage
{
DECLARE_DYNCREATE(CPGLLine2DPropPage)

// Construction
public:
	CPGLLine2DPropPage(CPGLLine2D* _pLine2D=NULL);
	~CPGLLine2DPropPage();

	void SetPointer(CPGLLine2DStPtr _pLine2D)
	{	PGL_ASSERT_VALID(_pLine2D); m_pLine2D=_pLine2D;};

// Dialog Data
	//{{AFX_DATA(CPGLLine2DPropPage)
	enum { IDD = IDD_PGL_PROPPAGE_LINE2D };
	int		m_nPoints;
	BOOL	m_bShowEnd;
	BOOL	m_bShowStart;
	double	m_dLengthEnd;
	double	m_dThickEnd;
	double	m_dLengthStart;
	double	m_dThickStart;
	BOOL	m_bFill;
	BOOL	m_bOpen;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPGLLine2DPropPage)
	public:
	virtual BOOL OnKillActive();
	virtual BOOL OnSetActive();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CPGLLine2DStPtr m_pLine2D;
	// Generated message map functions
	//{{AFX_MSG(CPGLLine2DPropPage)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LINE2DGLPAGE_H__CF898C40_8166_11D4_8267_00A024D26A1F__INCLUDED_)
